home *** CD-ROM | disk | FTP | other *** search
- Path: aloha.cc.columbia.edu!peg14
- From: peg14@aloha.cc.columbia.edu (Paul E Gunnells)
- Newsgroups: comp.lang.c++
- Subject: C++ and lex?
- Date: 21 Jan 1996 23:01:45 GMT
- Organization: Columbia University
- Message-ID: <4dugkp$fl8@apakabar.cc.columbia.edu>
- NNTP-Posting-Host: aloha.cc.columbia.edu
-
- Hello everyone:
-
- Has anyone ever tried using lex along with iostream.h to handle input?
- Or better yet, is there some equivalent to lex that works well with
- C++?
-
- Of course, one solution is to have an extern C function yylex() that
- just returns tokens that your C++ program deals with, but a better
- solution (at least a cleaner solution) would be a version of lex that
- allows you to directly incorporate C++ code (streams, constructors)
- into the lex source.
-
- Is there such a beast?
-
- Paul Gunnells
-
-
-